<nav class="navbar navbar-inverse navbar-static-top">
    <div class="container-fluid">
        <header class="navbar-header">
            <button type="button" class="navbar-toggle" data-toggle="collapse" 
                    data-target=".navbar-ex1-collapse">
                <span class="sr-only">Toggle navigation</span> 
                <span class="icon-bar"></span> 
                <span class="icon-bar"></span> 
                <span class="icon-bar"></span> 
            </button>
            <a href="{{URL::to('/')}}" class="navbar-brand">
                <img src="{{ URL::asset('assets/img/logo-6.png') }}" alt="">
            </a> 
        </header>
        <div class="topnav">
            <div class="btn-group">      
                {{ Helpers\Helper::image_link('language.select','assets/img/en.jpg',
                            'English',array('en'),array('class'=>'btn btn-default btn-sm'))
                }} 
                {{ Helpers\Helper::image_link('language.select','assets/img/albania.png',
                    'Albanian',array('al'),array('class'=>'btn btn-default btn-sm'))
                }}
            </div>
            <div class="btn-group">
                @if(!Auth::check())
                {{ HTML::link('users', 'Login') }}   
                @else
                {{ Helpers\Helper::fa_link_to_action('fa fa-power-off',
                    'UserController@doLogout','',null, array( 
                            'class'=>'btn btn-metis-1 btn-sm')) }} 
                @endif
            </div>
            <div class="btn-group">
                <a data-placement="bottom" data-original-title="Show / Hide Left" 
                   data-toggle="tooltip" class="btn btn-primary btn-sm toggle-left" id="menu-toggle">
                    <i class="fa fa-bars"></i>
                </a> 
                <a data-placement="bottom" data-original-title="Show / Hide Right"
                   data-toggle="tooltip" class="btn btn-default btn-sm toggle-right"> 
                    <span class="glyphicon glyphicon-comment"></span>  
                </a> 
            </div>
        </div>
        <div class="collapse navbar-collapse navbar-ex1-collapse">
            <!-- .nav -->
            <ul  class="nav navbar-nav">
                <li id="tab_home" ><a href="{{URL::to('/')}}">{{ Lang::get('messages.home') }}</a></li>
                <li id="tab_cars" class='dropdown'>
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                        {{ Lang::get('messages.administration') }}
                        <b class="caret"></b>
                    </a> 
                    <ul id = "second-level" class="dropdown-menu">
                        <li> {{link_to_action('MaintenanceController@vehicle_maintenance', 
                            Lang::get('messages.vehicle_maintenance'),null)}}</li>
                        <li> {{link_to_action('RepairController@vehicle_repair', 
                            Lang::get('messages.vehicle_repair'),null)}}</li>
                        <li> {{link_to_action('CarController@insurDocs_print', 
                            Lang::get('messages.insur_docs_report'),null)}}</li>
                        <li> {{link_to_action('MaintenanceController@maintenance_print', 
                            Lang::get('messages.maintenance_report'),null)}}</li>
                    </ul>
                </li>   
                <li id="tab_cars" class='dropdown'>
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                        {{ Lang::get('messages.reservations') }}
                        <b class="caret"></b>
                    </a> 
                    <ul id = "second-level" class="dropdown-menu">
                        <li> {{link_to_action('RentalController@create', 
                            Lang::get('reservation.new_reservation'),null)}}
                        </li> 
                        <li> {{link_to_action('CalendarController@index', 
                            Lang::get('messages.calendar'),null)}}
                        </li>   
                        <li> {{link_to_action('BookingController@index', 
                            Lang::get('messages.online_reservations'),null)}}
                        </li> 
                        <li> {{link_to_action('RentalController@all_reservations', 
                            Lang::get('rentals.all_reservations'),null)}}
                        </li> 
                    </ul>
                </li>     
                <li id="tab_cars" class='dropdown'>
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                        {{ Lang::get('messages.rentals') }}
                        <b class="caret"></b>
                    </a> 
                    <ul id = "second-level" class="dropdown-menu">
                        <li> {{link_to_action('RentalController@index', 
                            Lang::get('rentals.check_out'),null)}}
                        </li>
                        <li> {{link_to_action('RentalController@check_in_search', 
                            Lang::get('rentals.check_in'),null)}}
                        </li>
                        <li> {{link_to_action('RentalController@all_rentals', 
                            Lang::get('rentals.all_rentals'),null)}}
                        </li> 
                    </ul>
                </li> 
                <li id="tab_cars" class='dropdown'>
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                        {{ Lang::get('messages.customers') }}
                        <b class="caret"></b>
                    </a> 
                    <ul id = "second-level" class="dropdown-menu">
                        <li> {{link_to_action('CustomerController@index', 
                            Lang::get('messages.customer'),null)}}
                        </li>
                        <li> {{link_to_action('CustomerController@create', 
                            Lang::get('messages.new_customer'),null)}}
                        </li>
                    </ul>
                </li> 
                <li id="tab_cars" class='dropdown'>
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                        {{ Lang::get('messages.reports') }}
                        <b class="caret"></b>
                    </a> 
                    <ul id = "second-level" class="dropdown-menu">
                        <li> {{link_to_action('ReportController@index', 
                            Lang::get('messages.reports'),null)}}
                        </li>
                    </ul>
                </li>   
                
                @if(Auth::check())
                @if(Auth::user()->role == 'admin')
                <li id="tab_cars" class='dropdown'>
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                        {{ Lang::get('messages.settings') }}
                        <b class="caret"></b>
                    </a> 
                    <ul id = "second-level" class="dropdown-menu">
                        <li>{{link_to_action('UserController@pending_users', 
                            Lang::get('messages.pending_users'),null)}}</li>
                        <li>{{link_to_action('UserController@users_roles', 
                            Lang::get('messages.users_roles'),null)}}</li>
                        <li>{{link_to_action('RepairController@index_repairParts', 
                            Lang::get('messages.repair_parts'),null)}}</li>
                        <li>{{link_to_action('MaintenanceController@processes', 
                            Lang::get('messages.processes'),null)}}</li>
                    </ul>
                </li>  
                @endif
                @endif
            </ul>
        </div>
    </div>
</nav>
<header class="head">
    <div  class="main-bar">
        <h3>&nbsp; </h3>
    </div>
</header>